]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Don't line wrap application names in wells, fix running alignment
authorColin Walters <walters@verbum.org>
Mon, 27 Jul 2009 21:47:28 +0000 (17:47 -0400)
committerColin Walters <walters@verbum.org>
Mon, 27 Jul 2009 22:35:41 +0000 (18:35 -0400)
The experiment with avoiding ellipsization was a definite failure;
several translations have very long names, and we'd end up
with a single column.

Also fix extra padding; we only want some space at the top, not
left/right.

js/ui/appDisplay.js

index a939a834f1850fa124692b8cd721f0dacb9d307c..ded639bd2bfa51a0bcf43330723a1b8806033c81 100644 (file)
@@ -506,8 +506,7 @@ WellDisplayItem.prototype = {
         this._name = new Clutter.Text({ color: GenericDisplay.ITEM_DISPLAY_NAME_COLOR,
                                         font_name: "Sans 12px",
                                         line_alignment: Pango.Alignment.CENTER,
-                                        line_wrap: true,
-                                        line_wrap_mode: Pango.WrapMode.WORD,
+                                        ellipsize: Pango.EllipsizeMode.END,
                                         text: appInfo.get_name() });
         nameBox.append(this._name, Big.BoxPackFlags.NONE);
         if (this._windows.length > 0) {
@@ -721,7 +720,7 @@ AppWell.prototype = {
         this._runningBox = new Big.Box({ border_color: GenericDisplay.ITEM_DISPLAY_NAME_COLOR,
                                          border_top: 1,
                                          corner_radius: 3,
-                                         padding: GenericDisplay.PREVIEW_BOX_PADDING });
+                                         padding_top: GenericDisplay.PREVIEW_BOX_PADDING });
         this._runningArea = new WellArea(width, false);
         this._runningArea.connect('activated', Lang.bind(this, function (a, display) {
             this.emit('activated');